package com.pww.movie.mapper;

import com.pww.movie.domain.PO.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author pww
 * @since 2025-05-22
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {


    /**
     * 添加用户
     * @param username
     * @param md5String
     * @return
     */
    @Insert("insert into user (username, password,role)" +
            "values (#{username},#{md5String},'user')")
    Boolean addUser(String username, String md5String);
}
